package io.geekidea.boot.area.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.geekidea.boot.area.entity.Area;
import io.geekidea.boot.area.entity.ImportArea;
import io.geekidea.boot.area.query.AreaQuery;
import io.geekidea.boot.warehousentry.dto.WarehousentryExcel;
import io.geekidea.boot.warehousentry.query.WarehousentryQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;


@Mapper
public interface AreaMapper extends BaseMapper<Area> {

    @Update("delete FROM tb_area where id = #{id}")
    int delByIdInt(int id);

    List<Area> getList(Area area);

    List<ImportArea> getDownloadAreaList(@Param("param") AreaQuery areaQuery);
}
